//树下商品相关的所有api 接口
import request from '@/utils/requiest'
interface MyHotListParanms{
    count?:number,
    limitNum?:number
}
//1.秒杀商品接口
export const hotListApi = (info:MyHotListParanms) => request.get('/pro/seckilllist',{
    params:info
})
//2. 热门搜索
export const hotSearchApi = () => request.get('/pro/hotword')

//3模糊搜素的接口
export const searchListApi = (keyword:string,count?:number) =>request.get('/pro/search',{
    params: { keyword }
})
//4.获取商品列表（分页）
export const goodsListApi = (info:{ count :number,limitNum?:number}) =>request.get('/pro/list',{
    params :info
})
//5.产品分页列表
export const categordListApi = () =>request.get('/pro/categorylist')
//6.产品分类下的品牌列表
export const cateBrandListApi = (cate:string) =>request.get('/pro/categorybrandlist',{
    params:{category:cate}
})
//7.获取某分类下某品牌的产品列表
export const categoryBrandGoodListApi = (info:{ category:string,brand:string}) =>request.get('/pro/categorybrandprolist',{
    params:info
})